<?php

namespace App\Models;

use App\Helper;
use App\Models\Account;
use Illuminate\Database\Eloquent\Model;


class Realm extends Model
{
    protected $connection = 'mysql_auth';
    protected $table = 'account';
    public $timestamps = false;


    public static function setInfo($server,$name,$address,$port){
        $acc_id=json_decode( session('player'))->id;
        Helper::setDataBaseConf('mysql_auth',$server,'acore_auth');
        return Account::find($acc_id);
    }

}
